package team.you.ticket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import team.you.ticket.pojo.User;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User user);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKey(User record);
    //按用户名查询
    User selectByUsername(@Param("username") String username);
    //分页查询
    List<User> selectAll(@Param("page") Integer page, @Param("limit") Integer limit);
    //查询所有
    Integer getCount();
    //字段更新
    Integer UpdateByKey(@Param("id") String id, @Param("value") String value, @Param("field") String field);
    //模糊查询
    List<User> selectByLike(@Param("value") String value,@Param("type") Integer type,@Param("page") Integer page, @Param("limit") Integer limit);
}